//
//  DataCenter.h
//  DeyiLife
//
//  Created by zxin on 15/6/30.
//  Copyright (c) 2015年 Deyi. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "MarketData.h"
#import "Address.h"

typedef NS_ENUM(NSInteger, PGoodDetailType) {
    PGoodDetailYKJ = 0,
    PGoodDetailPM,
};

#define MARKETDATA ([[DataCenter sharedDataCenter] MarketData])

@interface DataCenter : NSObject

DEFINE_SINGLETON_HEADER(DataCenter)

//第三方登陆
@property (strong, nonatomic) NSString *wxopenid;//微信openid 微博userid
@property (strong, nonatomic) NSString *wxunionid;
@property (strong, nonatomic) NSString *wxtoken;
@property (strong, nonatomic) NSString *nickname;
@property (strong, nonatomic) NSString *headurl;

//购买数量
@property (strong, nonatomic) Address *purchaseAddress;
@property (assign, nonatomic) NSInteger purchaseCount;
@property (strong, nonatomic) NSString *purchaseWords;

//筛选
@property (strong, nonatomic) NSString *sxname;
@property (strong, nonatomic) NSString *sxtype;//一口价，拍品
@property (strong, nonatomic) NSString *sxprice1;
@property (strong, nonatomic) NSString *sxprice2;
@property (strong, nonatomic) NSString *sxcatogery;

//发布商品
@property (assign, nonatomic) PGoodDetailType detailType;

- (void)resetSXData;

- (MarketData *)MarketData;

@end
